import { defineStore } from 'pinia'
export const position = defineStore('position', {
    unistorage: false, // 是否持久化
    state: () => {
        return {
            longitude: null, //经度
            latitude: null, //纬度
        };

    },
    actions: {
        setPosition({longitude,latitude}:any) {
            this.longitude = longitude||this.longitude;
            this.latitude = latitude||this.latitude;
        }
    }
})
